#include "Weapon.h"


Weapon::~Weapon()
{
}


Weapon::Weapon(const Weapon& w)
{
	itemName = w.getName();
	price = w.getPrice();
	weight = w.getWeight();
	damage = w.getDamage();
	range = w.getRange();
	resistance = w.getResistance();
	durability = w.getDurability();
	quality = w.getQuality();
}


Weapon& Weapon::operator=(const Weapon& w)
{
	Weapon * result = new Weapon();
	if (this != &w)
	{
		this->setName(w.getName());
		this->setPrice(w.getPrice());
		this->setDamage(w.getDamage());
		this->setDurability(w.getDurability());
		this->setQuality(w.getQuality());
	}
	return *this;
}